package edu.java.homework.hw10.stack.exceptions;

public class StackFullException extends RuntimeException {

    public StackFullException() {
	super();
    }

    public StackFullException(String message) {
	super(message);
    }

    public StackFullException(String message, Throwable throwable) {
	super(message, throwable);
    }

    @Override
    public String getMessage() {
	return super.getMessage() + "The stack is full. "
		+ "It is impossible to set additional element in the stack.";
    }
}
